package vn.aptech.leaveManagementSystem.view.util;

import java.util.TimerTask;

import vn.aptech.leaveManagementSystem.view.director.DirectorMainForm;
import vn.aptech.leaveManagementSystem.view.manager.DemoApprovalApplicationFormForManager;
import vn.aptech.leaveManagementSystem.view.manager.DemoManagerMainForm;
import vn.aptech.leaveManagementSystem.view.personnel.DemoPersonnelMainForm;

public class TimerTaskForManager extends TimerTask{
	private DemoManagerMainForm  mainform;
	public TimerTaskForManager(DemoManagerMainForm mainform) {
		this.mainform=mainform;
	}

	@Override
	public void run() {
		mainform.UpdateSource();
		System.out.println("source updated");
	}
}
